package com.neuedu.test1030;

public class Test_05_Switch {
	public static void main(String[] args) {
		int n =2 ;
		int result;
		
	switch(n+1) {
	case 1:
		System.out.println("A");
		result = n;
		break;
	case 2:
		System.out.println("B");
		result = n*n;
		break;
	case 3:
		System.out.println("C");
		result = n*n*n;
		break;
	default:
		result = 0 ;
		}
	System.out.println(result);
	}
}
